package dk.eclipse.android.helpers;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import android.content.Context;
import android.telephony.CellLocation;
import android.telephony.NeighboringCellInfo;
import android.telephony.TelephonyManager;

public class TelephonyHelper {

	public static TelephonyManager getTelephonyManager(Context context) {
		TelephonyManager tm = (TelephonyManager) context
				.getSystemService(Context.TELEPHONY_SERVICE);
		return tm;
	}

	public static String getDeviceId(Context context) {
		return getTelephonyManager(context).getDeviceId();
	}

	public static String getDeviceSoftwareVersion(Context context) {
		return getTelephonyManager(context).getDeviceSoftwareVersion();
	}

	public static String getDevicePhoneNumber(Context context) {
		return getTelephonyManager(context).getLine1Number();
	}

	public static int getDeviceCallState(Context context) {
		return getTelephonyManager(context).getCallState();
	}

	public static CellLocation getDeviceCellLocation(Context context) {
		return getTelephonyManager(context).getCellLocation();
	}

	public static int getDeviceDataActivity(Context context) {
		return getTelephonyManager(context).getDataActivity();
	}

	public static int getDeviceDataState(Context context) {
		return getTelephonyManager(context).getDataState();
	}

	public static List<NeighboringCellInfo> getDeviceNeighboringCellInfo(
			Context context) {
		return getTelephonyManager(context).getNeighboringCellInfo();
	}

	public static String getNetworkCountryIso(Context context) {
		return getTelephonyManager(context).getNetworkCountryIso();
	}

	public static String getNetworkOperator(Context context) {
		return getTelephonyManager(context).getNetworkOperator();
	}

	public static String getNetworkOperatorName(Context context) {
		return getTelephonyManager(context).getNetworkOperatorName();
	}

	public static int getNetworkType(Context context) {
		return getTelephonyManager(context).getNetworkType();
	}

	public static int getPhoneType(Context context) {
		return getTelephonyManager(context).getPhoneType();
	}

	public static String getSimCountryIso(Context context) {
		return getTelephonyManager(context).getSimCountryIso();
	}

	public static String getSimOperator(Context context) {
		return getTelephonyManager(context).getSimOperator();
	}

	public static String getSimOperatorName(Context context) {
		return getTelephonyManager(context).getSimOperatorName();
	}

	public static String getSimSerialNumber(Context context) {
		return getTelephonyManager(context).getSimSerialNumber();
	}

	public static int getSimState(Context context) {
		return getTelephonyManager(context).getSimState();
	}

	public static String getSubscriberId(Context context) {
		return getTelephonyManager(context).getSubscriberId();
	}

	public static String getVoiceMailAlphaTag(Context context) {
		return getTelephonyManager(context).getVoiceMailAlphaTag();
	}

	public static String getVoiceMailNumber(Context context) {
		return getTelephonyManager(context).getVoiceMailNumber();
	}
}